package pers.luofei.http.client.core;

import pers.luofei.http.client.converter.ResponseBodyDecoder;

import java.io.InputStream;
import java.util.Map;

/**
 * @author luofei[fei12990@foxmail.com]
 * @date 2017/10/13
 */
public class RequestData {

    private Map<String, Object> requestParameters;
    private InputStream requestBody;
    private Map<String, String> customHeaders;
    private ResponseCallback callBack;
    private ResponseBodyDecoder responseBodyDecoder;

    public Map<String, Object> getRequestParameters() {
        return requestParameters;
    }

    public void setRequestParameters(Map<String, Object> requestParameters) {
        this.requestParameters = requestParameters;
    }

    public InputStream getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(InputStream requestBody) {
        this.requestBody = requestBody;
    }

    public Map<String, String> getCustomHeaders() {
        return customHeaders;
    }

    public void setCustomHeaders(Map<String, String> customHeaders) {
        this.customHeaders = customHeaders;
    }

    public ResponseCallback getCallBack() {
        return callBack;
    }

    public void setCallBack(ResponseCallback callBack) {
        this.callBack = callBack;
    }

    public ResponseBodyDecoder getResponseBodyDecoder() {
        return responseBodyDecoder;
    }

    public void setResponseBodyDecoder(ResponseBodyDecoder responseBodyDecoder) {
        this.responseBodyDecoder = responseBodyDecoder;
    }
}
